﻿using S_Incident.Domains.EventHandling;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S_Incident.Infrasturctre
{
    public interface IDapperRepository<T>
    {
        Task<int> Insert(T entity, string insertSql);
        Task<int> Update(T entity, string updateSql);
        Task<int> Delete(int Id, string deleteSql);
        Task<T> GetOne(int Id, string selectOneSql);
        Task<List<T>> SelectAsync(int PageSize, string selectSql);
        //查全部
        Task<List<T>> GetAllAsync(string sql);
        Task<List<T>> GetAllAsyncs(string sql);


    }
}
